
namespace ZR.Model.BaseManage
{
    /// <summary>
    /// plc标签信息
    /// </summary>
    [SugarTable("base_plc_tag")]
    public class BasePlcTag
    {
        /// <summary>
        /// 标签id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "tag_id")]
        public string TagId { get; set; }

        /// <summary>
        /// plc编号 
        /// </summary>
        [SugarColumn(ColumnName = "plc_code")]
        public string PlcCode { get; set; }

        /// <summary>
        /// 标签编号 
        /// </summary>
        [SugarColumn(ColumnName = "tag_code")]
        public string TagCode { get; set; }

        /// <summary>
        /// 标签地址 
        /// </summary>
        [SugarColumn(ColumnName = "tag_address")]
        public string TagAddress { get; set; }

        /// <summary>
        /// 数据类型 
        /// </summary>
        [SugarColumn(ColumnName = "tag_type")]
        public string TagType { get; set; }

        /// <summary>
        /// 值 
        /// </summary>
        [SugarColumn(ColumnName = "tag_value")]
        public string TagValue { get; set; }

        /// <summary>
        /// 启用标志（0禁用1启用） 
        /// </summary>
        public int Enabled { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        [SugarColumn(ColumnName = "create_by")]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        [SugarColumn(ColumnName = "update_by")]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        public string Remark { get; set; }

    }
}